package com.example.work3.entity;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicUpdate;

@Data
@Entity(name = "user")
@NoArgsConstructor
@AllArgsConstructor
@DynamicUpdate
public class User {
    @Id
    @Column(name = "account")
    private String account;
    @Column(name = "password")
    private String password;
    @Column(name = "role")
    private Integer role;
}
